package com.xinqi.modules.course.classroom.service;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.course.classromm.dto.InterationQueryDTO;
import com.xinqi.modules.course.classromm.dto.LiveActCreateDTO;
import com.xinqi.modules.course.classroom.domain.LiveActEntity;

import java.util.Map;

/**
 * 互动表(LiveAct)表服务接口
 *
 * @author liuxingxing
 * @since 2023-03-31 14:16:53
 */
public interface LiveActService extends BaseService<LiveActEntity> {

    /**
     * 随机提问-开始
     * @param liveAct
     */
    void startInteraction(LiveActCreateDTO liveAct);

    /**
     * 随机提问-结束
     * @param queryDTO
     */
    void endInteraction(InterationQueryDTO queryDTO);

    /**
     * 点名提问
     * @param queryDTO
     */
    void askQuestion(InterationQueryDTO queryDTO);

    Map<String, Object> countUnread(Long classId);
}
